package com.eight.clienthome.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.eight.clienthome.dao.HeadDao;
import com.eight.clienthome.service.HeadService;
import com.eight.common.pojo.TbHeadNav;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 向文豪
 * @program: eight-education-parent
 * @description:
 * @date 2023/6/2 11:02
 */
@Service
public class HeadServiceImpl implements HeadService {

    @Autowired
    private HeadDao headDao;
    @Override
    public List<TbHeadNav> findAll() {
        QueryWrapper<TbHeadNav> wrapper = new QueryWrapper<>();
        wrapper.eq("is_diable","0");
        List<TbHeadNav> tbHeadNavs = headDao.selectList(wrapper);
        return tbHeadNavs;
    }
}
